package net.asrsmid.config;

/**
 * public class RsReport<br><br>
 * The class RsReport is used to describe a Reporting Services report 
 * which is configured in an XML config file
 * @author Chen WANG
 * @since 17 June 2011
 */
public class RsReport {
	public String appId;
	public String name;
	public String serverPath;
	public String description;
	
	/**
	 * Constructs a RsReport object with the given parameters
	 * @param appId the application id of this report
	 * @param name the identifier of this report 
	 * @param serverPath the path on the Reporting Service server 
	 */
	public RsReport(String appId, String name, String serverPath) {
		this(appId, name, serverPath, null);
	}

	/**
	 * Constructs a RsReport object with the given parameters
	 * @param appId the application id of this report
	 * @param name the identifier of this report 
	 * @param serverPath the path on the Reporting Service server
	 * @param description the user customized description of this report
	 */
	public RsReport(String appId, String name, String serverPath, String description) {
		this.appId = appId;
		this.name = name;
		this.serverPath = serverPath;
		this.description = description;
	}

	/**
	 * Returns the application id of this report
	 * @return the appId
	 */
	public String getAppId() {
		return appId;
	}

	/**
	 * Sets the application id of this report
	 * @param appId the appId to set
	 */
	public void setAppId(String appId) {
		this.appId = appId;
	}

	/**
	 * Returns the name of this report
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name of this report
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Returns the server path of this report
	 * @return the serverPath
	 */
	public String getServerPath() {
		return serverPath;
	}

	/**
	 * Sets the server path of this report
	 * @param serverPath the serverPath to set
	 */
	public void setServerPath(String serverPath) {
		this.serverPath = serverPath;
	}

	/**
	 * Returns the description of this report
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Sets the description of this report
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
}
